// 云函数入口
const explain = require("explain");

exports.main = async (event, context) => {
    return explain.run(event, context, (config) => {

        config.init({
			baseDir: __dirname,
			serviceDir: "/services/", 
			serviceKey: "service", 
			actionKey: "action", 
			routeKey: "route", 
			methodKey: "method", 
			paramsKey: "params", 
			enableMatchMode: 
			matchIgnore: [ 
			    {
			       service: "goods",
			       actions: ["getListAsync"]
			    }
			]
		
		});
    });
}